package com.cw.entity;

import com.alibaba.excel.annotation.*;
import com.baomidou.mybatisplus.annotation.*;
import com.fasterxml.jackson.annotation.*;
import io.swagger.annotations.*;
import java.io.*;
import java.time.*;
import lombok.*;
import lombok.experimental.*;

/**
* @author smq
* @since 2021-04-27
 */
@ApiModel(value = "床位、病人")
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("PATIENT_BED")
public class PatientBed implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "主键")
    @TableId("id")
    private String id;

    @ApiModelProperty(value = "床位ID")
    @ExcelProperty(value = "BED_ID")
    @TableField("BED_ID")
    private String bedId;

    @ApiModelProperty(value = "就诊号")
    @ExcelProperty(value = "VISIT_NO")
    @TableField("VISIT_NO")
    private String visitNo;

    @ApiModelProperty(value = "病人ID")
    @ExcelProperty(value = "PATIENT_ID")
    @TableField("PATIENT_ID")
        private String patientId;

    @ApiModelProperty(value = "创建时间")
    @ExcelProperty(value = "CREATE_TIME")
    @TableField("CREATE_TIME")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime createTime;

    @ApiModelProperty(value = "创建人")
    @ExcelProperty(value = "CREATE_BY")
    @TableField("CREATE_BY")
    private String createBy;

    @ApiModelProperty(value = "删除 0:未删除 1:已删除")
    @ExcelProperty(value = "DELETE_FLAG")
    @TableField("DELETE_FLAG")
    private String deleteFlag;

    @ApiModelProperty(value = "his是否确认 0:确认 1:不确认")
    @ExcelProperty(value = "IS_HIS_CONFIRM")
    @TableField("IS_HIS_CONFIRM")
    private String isHisConfirm;
    
    @ApiModelProperty(value = "就诊类型编码")
    @ExcelProperty(value = "VISIT_TYPE_CODE")
    @TableField("VISIT_TYPE_CODE")
    private String visitTypeCode;

    @ApiModelProperty(value = "就诊类型名称")
    @ExcelProperty(value = "VISIT_TYPE_NAME")
    @TableField("VISIT_TYPE_NAME")
    private String visitTypeName;

}
